<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<ul id="childList">
    <logic:empty name="dependantDTOs">
        <li>empty</li>
    </logic:empty>
    <logic:iterate name="dependantDTOs" id="linked">
        <li style="list-style-image: url(
        <logic:equal name="linked" property="type" value="Action">
            <logic:equal name="linked" property="isActive" value="true"><html:rewrite page='/icons/action-16x16.png'/></logic:equal>
            <logic:equal name="linked" property="isActive" value="false"><html:rewrite page='/icons/action-resolved-16x16.png'/></logic:equal>
        </logic:equal>
        <logic:equal name="linked" property="type" value="Anchor"><html:rewrite page='/icons/anchor-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="Issue">
            <logic:equal name="linked" property="isActive" value="true"><html:rewrite page='/icons/issue-16x16.png'/></logic:equal>
            <logic:equal name="linked" property="isActive" value="false"><html:rewrite page='/icons/issue-resolved-16x16.png'/></logic:equal>
        </logic:equal>
        <logic:equal name="linked" property="type" value="Project">
            <logic:equal name="linked" property="isActive" value="true"><html:rewrite page='/icons/project-16x16.png'/></logic:equal>
            <logic:equal name="linked" property="isActive" value="false"><html:rewrite page='/icons/project-resolved-16x16.png'/></logic:equal>
        </logic:equal>
        )">
            <html:link action="showNode.do" paramId="nodeId" paramName="linked" paramProperty="nodeId">
                <beans:write name="linked" property="name"/><span><beans:write name="linked" property="name"/></span>
            </html:link>
        </li>
    </logic:iterate>
</ul>
